import { post, get } from '../../http/axios'
export default {
    namespaced: true,
    state: {
        hos1: {}
    },
    mutations: {
        set_hos(state, val) {
            state.hos1 = val
        }
    },
    actions: {
        async findhos({ commit }, params) {
            let res = await get('/hospital/pageQuery', params);
            console.log(res);
            commit('set_hos', res.data.data);
            console.log(res.data.data);

        },
        async savehos({ commit }, params) {
            let res = await post('/hospital/saveOrUpdate', params);
            console.log(res);
            // context.commit('set_hos',res.data.data)
            return res

        }

    }
}